﻿package server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import java.sql.SQLException;



public interface ResStaffInterface extends Remote{
	
	public String getName(int workNum) throws RemoteException;
	public boolean setName(int workNum,String name) throws RemoteException;
	public double getSalary(int workNum)throws RemoteException ;
	public boolean setSalary(int workNum,double salary)throws RemoteException;
	public int getWorkKind(int workNum) throws RemoteException;
	public boolean setWorkKind(int workNum,int workKind)throws RemoteException ;
	
	
	
	public int getStaffNumber(int staffKind)throws RemoteException;
	
	public int getListSize()throws RemoteException;

	public int getSex(int worknumber) throws RemoteException;

	public boolean setSex(int workNum,int sex) throws RemoteException ;

	public int getAge(int worknumber) throws RemoteException;

	public boolean setAge(int workNum,int age) throws RemoteException;
	
	public int getFirstStaff(int i)throws RemoteException;
	
	public int getNextStaffNum(int i,int staff)throws RemoteException;
	
	public int addStaff(int kind, String name, int sex, int age,
			double salary) throws RemoteException;
	
	public boolean deleteStaff(int i)throws RemoteException;
	
	public int[] getAllStaffNum() throws RemoteException;
	

	
	
}
